﻿    using System.Collections.Generic;

namespace Sustainalytics.Events.Service.Errors
{
    
    public class ValidationErrorDto : ErrorModel
    {
        public ValidationErrorDto(int statusCode)
        {
            this.ErrorStatusCode = statusCode;
            this.Details = new List<ValidationResultDto>();
        }

        public List<ValidationResultDto> Details { get; set; }

        public ValidationErrorDto Add(ValidationResultDto validationResult)
        {
            Details.Add(validationResult);
            return this;
        }
    }

}
